package com.hqyj.springboot.modules.test.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.hqyj.springboot.modules.common.vo.Result;
import com.hqyj.springboot.modules.common.vo.Search;
import com.hqyj.springboot.modules.test.entity.City;

import java.util.List;

public interface CityService {
    Result<City> insertCity(City city);

    Result<City> updateCity(City city);

    Result<Object> deleteCityByCityId(int cityId);

    City getCityByCityId(int cityId);

    City getCityByNames(String cityName,String localCityName);

    List<City> getCitiesByCountryId(int countryId);

    PageInfo<City> getCitiesBySearch(Search search);

    Page<City> getCitiesBySearch2(Search search);
}
